package com.dengyuanke.strategypattern;

import java.math.BigDecimal;

/**
 * Created by dengyuanke on 2017/8/24.
 *
 * 金牌会员
 */
public class GoldMember implements MemberStrategy{

    @Override
    public BigDecimal price(BigDecimal price) {
        System.out.println("金牌会员打7折");
        return price.multiply(new BigDecimal(0.7));
    }
}
